Optimal. Leaf size=204 \[ \frac{c^4 \tan (e+f x) \sec ^2(e+f x)}{2 f \sqrt{a \sec (e+f x)+a} \sqrt{c-c \sec (e+f x)}}-\frac{4 c^4 \tan (e+f x) \sec (e+f x)}{f \sqrt{a \sec (e+f x)+a} \sqrt{c-c \sec (e+f x)}}+\frac{8 c^4 \tan (e+f x) \log (\sec (e+f x)+1)}{f \sqrt{a \sec (e+f x)+a} \sqrt{c-c \sec (e+f x)}}+\frac{c^4 \tan (e+f x) \log (\cos (e+f x))}{f \sqrt{a \sec (e+f x)+a} \sqrt{c-c \sec (e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.123592, antiderivative size = 204, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 30, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.067, Rules used = {3912, 72} \[ \frac{c^4 \tan (e+f x) \sec ^2(e+f x)}{2 f \sqrt{a \sec (e+f x)+a} \sqrt{c-c \sec (e+f x)}}-\frac{4 c^4 \tan (e+f x) \sec (e+f x)}{f \sqrt{a \sec (e+f x)+a} \sqrt{c-c \sec (e+f x)}}+\frac{8 c^4 \tan (e+f x) \log (\sec (e+f x)+1)}{f \sqrt{a \sec (e+f x)+a} \sqrt{c-c \sec (e+f x)}}+\frac{c^4 \tan (e+f x) \log (\cos (e+f x))}{f \sqrt{a \sec (e+f x)+a} \sqrt{c-c \sec (e+f x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3912
Rule 72
Rubi steps
\begin{align*} \int \frac{(c-c \sec (e+f x))^{7/2}}{\sqrt{a+a \sec (e+f x)}} \, dx &=-\frac{(a c \tan (e+f x)) \operatorname{Subst}\left (\int \frac{(c-c x)^3}{x (a+a x)} \, dx,x,\sec (e+f x)\right )}{f \sqrt{a+a \sec (e+f x)} \sqrt{c-c \sec (e+f x)}}\\ &=-\frac{(a c \tan (e+f x)) \operatorname{Subst}\left (\int \left (\frac{4 c^3}{a}+\frac{c^3}{a x}-\frac{c^3 x}{a}-\frac{8 c^3}{a (1+x)}\right ) \, dx,x,\sec (e+f x)\right )}{f \sqrt{a+a \sec (e+f x)} \sqrt{c-c \sec (e+f x)}}\\ &=\frac{c^4 \log (\cos (e+f x)) \tan (e+f x)}{f \sqrt{a+a \sec (e+f x)} \sqrt{c-c \sec (e+f x)}}+\frac{8 c^4 \log (1+\sec (e+f x)) \tan (e+f x)}{f \sqrt{a+a \sec (e+f x)} \sqrt{c-c \sec (e+f x)}}-\frac{4 c^4 \sec (e+f x) \tan (e+f x)}{f \sqrt{a+a \sec (e+f x)} \sqrt{c-c \sec (e+f x)}}+\frac{c^4 \sec ^2(e+f x) \tan (e+f x)}{2 f \sqrt{a+a \sec (e+f x)} \sqrt{c-c \sec (e+f x)}}\\ \end{align*}
Mathematica [C] time = 15.3406, size = 153, normalized size = 0.75 \[ \frac{c^3 \cot \left (\frac{1}{2} (e+f x)\right ) \sec ^2(e+f x) \sqrt{c-c \sec (e+f x)} \left (-16 \log \left (1+e^{i (e+f x)}\right )+7 \log \left (1+e^{2 i (e+f x)}\right )+8 \cos (e+f x)+\left (-16 \log \left (1+e^{i (e+f x)}\right )+7 \log \left (1+e^{2 i (e+f x)}\right )+i f x\right ) \cos (2 (e+f x))+i f x-1\right )}{2 f \sqrt{a (\sec (e+f x)+1)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.309, size = 189, normalized size = 0.9 \begin{align*}{\frac{ \left ( \cos \left ( fx+e \right ) \right ) ^{2}}{2\,af\sin \left ( fx+e \right ) \left ( -1+\cos \left ( fx+e \right ) \right ) ^{3}} \left ( 14\,\ln \left ({\frac{1-\cos \left ( fx+e \right ) +\sin \left ( fx+e \right ) }{\sin \left ( fx+e \right ) }} \right ) \left ( \cos \left ( fx+e \right ) \right ) ^{2}+14\,\ln \left ( -{\frac{-1+\cos \left ( fx+e \right ) +\sin \left ( fx+e \right ) }{\sin \left ( fx+e \right ) }} \right ) \left ( \cos \left ( fx+e \right ) \right ) ^{2}+2\,\ln \left ( 2\, \left ( 1+\cos \left ( fx+e \right ) \right ) ^{-1} \right ) \left ( \cos \left ( fx+e \right ) \right ) ^{2}+9\, \left ( \cos \left ( fx+e \right ) \right ) ^{2}+8\,\cos \left ( fx+e \right ) -1 \right ) \left ({\frac{c \left ( -1+\cos \left ( fx+e \right ) \right ) }{\cos \left ( fx+e \right ) }} \right ) ^{{\frac{7}{2}}}\sqrt{{\frac{a \left ( 1+\cos \left ( fx+e \right ) \right ) }{\cos \left ( fx+e \right ) }}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: RuntimeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (-\frac{{\left (c^{3} \sec \left (f x + e\right )^{3} - 3 \, c^{3} \sec \left (f x + e\right )^{2} + 3 \, c^{3} \sec \left (f x + e\right ) - c^{3}\right )} \sqrt{-c \sec \left (f x + e\right ) + c}}{\sqrt{a \sec \left (f x + e\right ) + a}}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: TypeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]